package com.zuoban.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.zuoban.dto.UserInfoDto;
import com.zuoban.dto.UserLoginDto;
import com.zuoban.entity.base.BaseUserInfo;

import org.apache.ibatis.annotations.Param;

import java.math.BigInteger;
import java.util.List;

/**
 * @BelongsProject: zuoban-boot
 * @BelongsPackage: com.zuoban.mapper
 * @Author: zxy
 * @CreateTime: 2022-10-10
 * @Description: ...
 */
public interface BaseUserInfoMapper extends BaseMapper<BaseUserInfo> {


    UserInfoDto findByUserAccount(@Param("query") UserLoginDto userLoginDto);

    UserInfoDto findByUserId(@Param("userId") BigInteger userId);

    void updateToken(@Param("userId") BigInteger userId,  @Param("token") String token);

}
